import { RouteRecordRaw } from "vue-router";

// 帐号管理模块
const tableRouter: Array<RouteRecordRaw> = [
  {
    path: "/cpyjob",
    component: () => import("@/layouts/index.vue"),
    redirect: "/cpyjob/ft",
    meta: {
      icon: "MessageBox",
      title: "发岗位"
    },
    children: [
      {
        path: "/cpyjob/ft",
        name: "cpyjobFt",
        component: () => import("@/views/cpyjob/ft/index.vue"),
        meta: {
          icon: "menu",
          title: "全职岗位",
          keepAlive: true,
          requiresAuth: true,
          key: "cpyjobFt"
        },
        children: []
      },
      {
        path: "/cpyjob/oddjob",
        name: "cpyjobOddjob",
        component: () => import("@/views/cpyjob/oddjob/index.vue"),
        meta: {
          icon: "menu",
          title: "零工岗位",
          keepAlive: true,
          requiresAuth: true,
          key: "cpyjobOddjob"
        },
        children: []
      },
      {
        path: "/cpyjob/train",
        name: "cpyjobTrain",
        component: () => import("@/views/cpyjob/train/index.vue"),
        meta: {
          icon: "menu",
          title: "考证管理",
          keepAlive: true,
          requiresAuth: true,
          key: "cpyjobTrain"
        },
        children: []
      }
    ]
  }
];
export default tableRouter;
